﻿@{
    TBM.Models.Mail MailInfo = (TBM.Models.Mail)ViewBag.Mail;
}
<div class="mail-line"></div>
<form id="mailForm" role="form" action="#" method="post">
  <input type="hidden" id="mid" value="@ViewBag.MID" />
  <div class="mb-10">
    <button id="btnSend" type="button" class="btn blue">
      <i class="fa fa-paper-plane-o mr-10"></i>发送
    </button>
    <button id="btnSaveDraft" type="button" class="btn default blue-stripe">
      <i class="fa fa-save mr-10"></i>存稿
    </button>
    <button id="btnCancelAndDelete" type="button" class="btn default blue-stripe">
      <i class="fa fa-trash-o mr-10"></i>删除
    </button>
  </div>
  <div class="form-body">
    <div class="form-group">
      <label>收件人</label>
      <div>
        <input type="hidden" id="sendto" class="form-control bigdrop" value="" />
      </div>
    </div>
    <div class="form-group">
      <label>邮件主题</label>
      <div>
        <input type="text" id="txtSubject" class="form-control" value="@MailInfo.Subject" />
      </div>
    </div>
    <label for="editor">邮件内容</label>
    <textarea id="editor" placeholder="写点什么吧...">@MailInfo.Context</textarea>
  </div>
</form>
<script type="text/javascript">
    Mail.Data.Receiver = @Html.Raw(String.IsNullOrEmpty(ViewBag.SendTo) ? "null" : ViewBag.SendTo);
</script>
